<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link rel="icon" href="../images/icon.jpg" type="image/x-icon">
	<link rel="stylesheet" type="text/css" href="../css/generalstyle.css">
	
	<title>资源管理</title>
	<script language="JavaScript">
    function check()
    { 
      if(document.addAdmin.adname.value=="")
      {
         alert("请填写登录名！！！");
         addAdmin.adname.focus();
         return false;
      }
      if(document.addAdmin.adpwd.value=="")
      {
         alert("请填写登陆密码！！！");
         addAdmin.adpwd.focus();
         return false;
      }
      if(document.addAdmin.repwd.value=="")
      {
         alert("请重复密码！！！");
         addAdmin.repwd.focus();
         return false;
      }
      if(document.addAdmin.adpwd.value!=document.addAdmin.repwd.value)
       {
         alert("两次密码输入不一样，请检查输入！！！");
         addAdmin.adpwd.value="";
         addAdmin.repwd.value="";
         addAdmin.adpwd.focus();
         return false;
       }
       document.addAdmin.submit();
    }
   </script>
  </head>
  
  <body>
  <%@ include file="admintop.jsp" %>
    <hr width="100%"></hr><br>
    <form name="addAdmin" action="servlet/ListServlet" method="post">
    <table align="center" border="0" width="40%">
     
      <tr bgcolor="eeffee">
       <td align="right">登录名</td>
       <td><input type="text" name="adname" size="20"></td>
      </tr>
      <tr bgcolor="ffeeff">
       <td align="right">登陆密码</td>
       <td><input type="password" name="adpwd" size="20"></td>
      </tr>
      <tr bgcolor="eeffee">
       <td align="right">重复密码</td>
       <td><input type="password" name="repwd" size="20"></td>
      </tr>
      <tr bgcolor="ffeeff">
       <td></td>
       <td>
        <input type="hidden" name="action" value="addAdmin">
        <input type="button" value="添加" onclick="check()">
       </td>
      </tr>
     
    </table>
    </form>
  </body>
</html>
